<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			function update(){
				var _uid=uid.value;
				var xhr=new XMLHttpRequest();
				xhr.onreadystatechange=function(){
					if(xhr.readyState==4 && xhr.status==200){
						var r=xhr.responseText;
						if(r==1){
							alert("1")
						}else{
							alert("0")
						}
					}
				}
				xhr.open("put",`/ajax/v1/update`,true);
				var f
				xhr.send();
			}
		</script>
	</head>
	<body>
		<input type="text" id="uid">
		<button onclick="update()">修改</button>
	</body>
</html>
